home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / rdblib / rbprobrp.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-02  |  13.9 KB  |  424 lines

  1. VERSION 2.00
  2. Begin Form RBProbRpt 
  3.    BackColor       =   &H00FFFFFF&
  4.    Caption         =   "Problem Report Form"
  5.    ClientHeight    =   4020
  6.    ClientLeft      =   1095
  7.    ClientTop       =   1485
  8.    ClientWidth     =   7365
  9.    Height          =   4425
  10.    HelpContextID   =   24
  11.    Icon            =   RBPROBRP.FRX:0000
  12.    Left            =   1035
  13.    LinkTopic       =   "Form1"
  14.    ScaleHeight     =   4020
  15.    ScaleWidth      =   7365
  16.    Top             =   1140
  17.    Width           =   7485
  18.    Begin CommonDialog CMDialog1 
  19.       Left            =   9060
  20.       Top             =   6120
  21.    End
  22.    Begin TextBox TxSystem 
  23.       BackColor       =   &H00FFFFFF&
  24.       Height          =   315
  25.       Left            =   1920
  26.       TabIndex        =   28
  27.       Tag             =   "Enter the name of the system that had the problem"
  28.       Top             =   1320
  29.       Width           =   3135
  30.    End
  31.    Begin TextBox TxVer 
  32.       BackColor       =   &H00FFFFFF&
  33.       Height          =   315
  34.       Left            =   6600
  35.       TabIndex        =   27
  36.       Tag             =   "Enter the version number of the system you are using"
  37.       Top             =   1320
  38.       Width           =   2835
  39.    End
  40.    Begin SSCommand BtnSelPrtr 
  41.       Caption         =   "Select Printer"
  42.       Font3D          =   0  'None
  43.       Height          =   315
  44.       Left            =   540
  45.       TabIndex        =   26
  46.       Top             =   6180
  47.       Width           =   2850
  48.    End
  49.    Begin Frame Frame3 
  50.       Caption         =   "Describe the function being performed, the actions leading up to the error and the problem that occurred"
  51.       Height          =   2415
  52.       Left            =   120
  53.       TabIndex        =   25
  54.       Top             =   3720
  55.       Width           =   9375
  56.       Begin TextBox TxtProblem 
  57.          Height          =   2115
  58.          Left            =   60
  59.          MultiLine       =   -1  'True
  60.          ScrollBars      =   2  'Vertical
  61.          TabIndex        =   13
  62.          Tag             =   "Enter the description of the problem and the actions leading up to the problem"
  63.          Top             =   240
  64.          Width           =   9255
  65.       End
  66.    End
  67.    Begin Frame Frame2 
  68.       Caption         =   "Effect Of Problem"
  69.       Height          =   915
  70.       Left            =   120
  71.       TabIndex        =   24
  72.       Top             =   2760
  73.       Width           =   9375
  74.       Begin TextBox Text1 
  75.          BackColor       =   &H00FFFFFF&
  76.          Height          =   315
  77.          Index           =   4
  78.          Left            =   2400
  79.          TabIndex        =   12
  80.          Tag             =   "Enter the description of the other effect of this problem"
  81.          Top             =   540
  82.          Width           =   6855
  83.       End
  84.       Begin CheckBox Check1 
  85.          Caption         =   "Other (Please Specify)"
  86.          Height          =   375
  87.          Index           =   4
  88.          Left            =   120
  89.          TabIndex        =   11
  90.          Tag             =   "Check this box if there is some other effect with this problem"
  91.          Top             =   480
  92.          Width           =   2295
  93.       End
  94.       Begin CheckBox Check1 
  95.          Caption         =   "Can Use System, But Functionality Is Limited"
  96.          Height          =   225
  97.          Index           =   3
  98.          Left            =   4500
  99.          TabIndex        =   10
  100.          Tag             =   "Check this box if you can use the system, but the functionality of the system is limited because of this problem"
  101.          Top             =   240
  102.          Width           =   4575
  103.       End
  104.       Begin CheckBox Check1 
  105.          Caption         =   "Can't use this function"
  106.          Height          =   225
  107.          Index           =   2
  108.          Left            =   2040
  109.          TabIndex        =   9
  110.          Tag             =   "Check this box if you can't use this function because of the problem"
  111.          Top             =   240
  112.          Width           =   2295
  113.       End
  114.       Begin CheckBox Check1 
  115.          Caption         =   "Can't Use System"
  116.          Height          =   225
  117.          Index           =   1
  118.          Left            =   120
  119.          TabIndex        =   8
  120.          Tag             =   "Check this box if you can't use the system because of this problem"
  121.          Top             =   240
  122.          Width           =   1875
  123.       End
  124.    End
  125.    Begin Frame Frame1 
  126.       Caption         =   "Type of Problem"
  127.       Height          =   915
  128.       Left            =   120
  129.       TabIndex        =   23
  130.       Top             =   1800
  131.       Width           =   9375
  132.       Begin CheckBox Check1 
  133.          Caption         =   "Problem is Repeatable (Consistent)"
  134.          Height          =   255
  135.          Index           =   0
  136.          Left            =   5880
  137.          TabIndex        =   5
  138.          Tag             =   "Check this box if the problem is repeatable (occurs consistently)"
  139.          Top             =   240
  140.          Width           =   3375
  141.       End
  142.       Begin TextBox Text1 
  143.          BackColor       =   &H00FFFFFF&
  144.          Height          =   285
  145.          Index           =   3
  146.          Left            =   2400
  147.          TabIndex        =   7
  148.          Tag             =   "Enter the description of the type of problem"
  149.          Top             =   510
  150.          Width           =   6855
  151.       End
  152.       Begin OptionButton Option1 
  153.          Caption         =   "Other (Please Specify)"
  154.          Height          =   255
  155.          Index           =   2
  156.          Left            =   120
  157.          TabIndex        =   6
  158.          Tag             =   "Select this option if some other type of problem occurred"
  159.          Top             =   480
  160.          Width           =   2295
  161.       End
  162.       Begin OptionButton Option1 
  163.          Caption         =   "System Didn't Work As Expected"
  164.          Height          =   255
  165.          Index           =   1
  166.          Left            =   2700
  167.          TabIndex        =   4
  168.          Tag             =   "Select this option if the system didn't work as expected"
  169.          Top             =   240
  170.          Width           =   3195
  171.       End
  172.       Begin OptionButton Option1 
  173.          Caption         =   "System Ended Abnormally"
  174.          Height          =   195
  175.          Index           =   0
  176.          Left            =   120
  177.          TabIndex        =   3
  178.          Tag             =   "Select this option if the system terminated abnormally"
  179.          Top             =   240
  180.          Width           =   2535
  181.       End
  182.    End
  183.    Begin SSPanel cmsg 
  184.       Align           =   2  'Align Bottom
  185.       Alignment       =   1  'Left Justify - MIDDLE
  186.       BackColor       =   &H00C0C0C0&
  187.       BevelInner      =   1  'Inset
  188.       FloodShowPct    =   0   'False
  189.       Font3D          =   0  'None
  190.       ForeColor       =   &H00FF0000&
  191.       Height          =   315
  192.       Left            =   0
  193.       TabIndex        =   20
  194.       Top             =   3705
  195.       Width           =   7365
  196.    End
  197.    Begin SSCommand BtnCancel 
  198.       Caption         =   "Exit"
  199.       Font3D          =   0  'None
  200.       Height          =   315
  201.       Left            =   6180
  202.       TabIndex        =   15
  203.       Top             =   6180
  204.       Width           =   2850
  205.    End
  206.    Begin SSCommand BtnPrint 
  207.       Caption         =   "Print Problem Report"
  208.       Font3D          =   0  'None
  209.       Height          =   315
  210.       Left            =   3360
  211.       TabIndex        =   14
  212.       Top             =   6180
  213.       Width           =   2850
  214.    End
  215.    Begin SSPanel Panel3D1 
  216.       Align           =   1  'Align Top
  217.       BackColor       =   &H00FFFFFF&
  218.       Caption         =   "Problem Report Form"
  219.       Font3D          =   1  'Raised w/light shading
  220.       FontBold        =   -1  'True
  221.       FontItalic      =   0   'False
  222.       FontName        =   "MS Sans Serif"
  223.       FontSize        =   18
  224.       FontStrikethru  =   0   'False
  225.       FontUnderline   =   0   'False
  226.       ForeColor       =   &H00FF0000&
  227.       Height          =   435
  228.       Left            =   0
  229.       TabIndex        =   21
  230.       Top             =   0
  231.       Width           =   7365
  232.    End
  233.    Begin TextBox Text1 
  234.       BackColor       =   &H00FFFFFF&
  235.       Height          =   315
  236.       Index           =   2
  237.       Left            =   6600
  238.       TabIndex        =   2
  239.       Tag             =   "Enter the name of the contact person"
  240.       Top             =   960
  241.       Width           =   2835
  242.    End
  243.    Begin TextBox Text1 
  244.       BackColor       =   &H00FFFFFF&
  245.       Height          =   315
  246.       Index           =   1
  247.       Left            =   1920
  248.       TabIndex        =   1
  249.       Tag             =   "Enter the name of your organization"
  250.       Top             =   960
  251.       Width           =   3135
  252.    End
  253.    Begin TextBox Text1 
  254.       BackColor       =   &H00FFFFFF&
  255.       Height          =   315
  256.       Index           =   0
  257.       Left            =   1920
  258.       TabIndex        =   0
  259.       Tag             =   "Enter the name of the person who is reporting the problem"
  260.       Top             =   540
  261.       Width           =   4575
  262.    End
  263.    Begin Label Label1 
  264.       AutoSize        =   -1  'True
  265.       BackColor       =   &H00FFFFFF&
  266.       Caption         =   "System..................."
  267.       ForeColor       =   &H00000000&
  268.       Height          =   195
  269.       Index           =   5
  270.       Left            =   120
  271.       TabIndex        =   30
  272.       Top             =   1440
  273.       Width           =   1755
  274.    End
  275.    Begin Label Label1 
  276.       AutoSize        =   -1  'True
  277.       BackColor       =   &H00FFFFFF&
  278.       Caption         =   "Version..........."
  279.       ForeColor       =   &H00000000&
  280.       Height          =   195
  281.       Index           =   3
  282.       Left            =   5160
  283.       TabIndex        =   29
  284.       Top             =   1380
  285.       Width           =   1305
  286.    End
  287.    Begin Label Label1 
  288.       AutoSize        =   -1  'True
  289.       BackColor       =   &H00FFFFFF&
  290.       Caption         =   "On"
  291.       ForeColor       =   &H00000000&
  292.       Height          =   195
  293.       Index           =   4
  294.       Left            =   6600
  295.       TabIndex        =   22
  296.       Top             =   600
  297.       Width           =   255
  298.    End
  299.    Begin Label Label1 
  300.       AutoSize        =   -1  'True
  301.       BackColor       =   &H00FFFFFF&
  302.       Caption         =   "Problem Reported By"
  303.       ForeColor       =   &H00000000&
  304.       Height          =   195
  305.       Index           =   2
  306.       Left            =   60
  307.       TabIndex        =   19
  308.       Top             =   600
  309.       Width           =   1800
  310.    End
  311.    Begin Label Label1 
  312.       AutoSize        =   -1  'True
  313.       BackColor       =   &H00FFFFFF&
  314.       Caption         =   "Contact Person"
  315.       ForeColor       =   &H00000000&
  316.       Height          =   195
  317.       Index           =   1
  318.       Left            =   5160
  319.       TabIndex        =   18
  320.       Top             =   1020
  321.       Width           =   1320
  322.    End
  323.    Begin Label Label1 
  324.       AutoSize        =   -1  'True
  325.       BackColor       =   &H00FFFFFF&
  326.       Caption         =   "Organization............"
  327.       ForeColor       =   &H00000000&
  328.       Height          =   195
  329.       Index           =   0
  330.       Left            =   60
  331.       TabIndex        =   17
  332.       Top             =   1080
  333.       Width           =   1800
  334.    End
  335.    Begin Label RBDateTime 
  336.       BackColor       =   &H00FFFFFF&
  337.       BorderStyle     =   1  'Fixed Single
  338.       Caption         =   "Date - Time"
  339.       Height          =   315
  340.       Left            =   6960
  341.       TabIndex        =   16
  342.       Top             =   540
  343.       Width           =   2535
  344.    End
  345. Dim RB_Svframeheight As Integer
  346. Dim RB_Svtextheight As Integer
  347. Sub BtnCancel_Click ()
  348.     Unload RBProbRpt
  349. End Sub
  350. Sub BtnPrint_Click ()
  351.     mousepointer = HOURGLASS
  352.     BtnPrint.Visible = False
  353.     BtnCancel.Visible = False
  354.     BtnSelPrtr.Visible = False
  355.     cmsg.Visible = False
  356.     RB_Svframeheight = Frame3.Height
  357.     RB_Svtextheight = TxtProblem.Height
  358.     Frame3.Height = cmsg.Top - Frame3.Top - 100
  359.     TxtProblem.Height = Frame3.Height - 300
  360.     RBProbRpt.Refresh
  361.     junk = DoEvents()
  362.     mousepointer = HOURGLASS
  363.     RBProbRpt.PrintForm
  364.     mousepointer = HOURGLASS
  365.     RBScrn.Show MODAL
  366.     RBErrFrm.WindowState = NORMAL
  367.     RBProbRpt.WindowState = MAXIMIZED
  368.     RBProbRpt.Visible = True
  369.     Frame3.Height = RB_Svframeheight
  370.     TxtProblem.Height = RB_Svtextheight
  371.     BtnPrint.Visible = True
  372.     BtnCancel.Visible = True
  373.     BtnSelPrtr.Visible = True
  374.     cmsg.Visible = True
  375.     BtnCancel.SetFocus
  376.     RBProbRpt.Refresh
  377.     mousepointer = DEFAULT
  378. End Sub
  379. Sub BtnSelPrtr_Click ()
  380.     CmDialog1.DialogTitle = "Problem Report Printer Setup"
  381.     CmDialog1.PrinterDefault = True
  382.     CmDialog1.Flags = PD_PRINTSETUP
  383.     CmDialog1.Action = 5
  384. End Sub
  385. Sub Check1_GotFocus (Index As Integer)
  386.     cmsg.Caption = Check1(Index).Tag
  387. End Sub
  388. Sub Check1_LostFocus (Index As Integer)
  389.     cmsg.Caption = ""
  390. End Sub
  391. Sub Form_Load ()
  392.     RBDateTime.Caption = Format$(Now, "MM/DD/YY - HH:MM:SS")
  393.     On Error Resume Next
  394.     txsystem.Text = rb_systemname
  395.     txver.Text = rb_version
  396.     On Error GoTo 0
  397. End Sub
  398. Sub Option1_GotFocus (Index As Integer)
  399.     cmsg.Caption = Option1(Index).Tag
  400. End Sub
  401. Sub Option1_LostFocus (Index As Integer)
  402.     cmsg.Caption = ""
  403. End Sub
  404. Sub Text1_GotFocus (Index As Integer)
  405.     Text1(Index).BackColor = BLUE
  406.     Text1(Index).ForeColor = WHITE
  407.     cmsg.Caption = Text1(Index).Tag
  408. End Sub
  409. Sub Text1_LostFocus (Index As Integer)
  410.     Text1(Index).BackColor = WHITE
  411.     Text1(Index).ForeColor = BLACK
  412.     cmsg.Caption = ""
  413. End Sub
  414. Sub TxtProblem_GotFocus ()
  415.     TxtProblem.BackColor = BLUE
  416.     TxtProblem.ForeColor = WHITE
  417.     cmsg.Caption = TxtProblem.Tag
  418. End Sub
  419. Sub TxtProblem_LostFocus ()
  420.     TxtProblem.BackColor = WHITE
  421.     TxtProblem.ForeColor = BLACK
  422.     cmsg.Caption = ""
  423. End Sub
  424.